package com.runda.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

@Configuration
public class ScheduledConfig {
	@Bean
	public TaskScheduler scheduledExecutorService() {
	ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
	scheduler.setPoolSize(8);
	scheduler.setThreadNamePrefix("scheduled-thread-");
	return scheduler;
	}
}
